##### My (demuredemeanor) bashrc sub source install check script
# Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{}}};
# https://notabug.org/demure/dotfiles/
# legacy repo http://github.com/demure/dotfiles
# vim:set syntax=sh:

## NOTE: not using ',' as I want to be able to:
# $(sudo aptitude install $MISSING_PROGRAMS)
# or more reasonably:
# $(for i in $MISSING_PROGRAMS; do sudo aptitude install $i; done)

MISSING_CLI=""
MISSING_GUI=""

### CLI ### {{{
CLI_LIST=(pinfo qmv vim w3m neomutt tmux ncdu pass stow notmuch msmtp \
mbsync urlview htop aircrack-ng mosh nmap fusermount exfatfsck fzf qemu-io \
cacaview scanmem hexcurse lsof pidof tomb xset pinentry-curses pinentry-tty \
ranger rfkill sshfs tree unar wget iotop parted caff fail2ban-client rsync \
weechat diff file find gpg gpg2 nc lnav cheat dfc newsboat task redshift git \
xdotool clamscan iftop syncthing wireshark hwmon bc entr gpm tlp sfill vit \
curl lshw parallel minicom khal scdaemon grep less cmus mpv tmuxinator iw \
dmidecode gawk bvi pandoc djmount openvpn resolvconf borg iptraf-ng make jq \
acpi termdown cgdb ttyd trash-put udiskie mtr tsp fwupdmgr exiv2 z.sh unzip \
pdfunite rubber epy tuir urlscan rlwrap)

for i in "${CLI_LIST[@]}"; do
    if [[ ! $(command -v ${i}) ]]; then
        MISSING_CLI+="${i} "
    fi
done
### End CLI ### }}}

### X GUI ### {{{
X_GUI_LIST=(rofi mcomix zathura feh scrot calibre i3lock xbacklight xfd \
libreoffice gparted xss-lock urxvt zeal i3 font-manager gimp \
baobab gvim nitrogen touchegg unclutter autorandr srandrd neato compton xrdb \
notify-send qtpass youtube-dl screenkey inkscape qutebrowser clipster xcalib \
pinentry-gtk2 sgt-signpost polybar kitty conky firefox rofi-pass speedcrunch \
setxkbmap playerctl)

for i in "${X_GUI_LIST[@]}"; do
    if [[ ! $(command -v ${i}) ]]; then
        MISSING_GUI_X+="${i} "
    fi
done
### End X GUI ### }}}

### W GUI ### {{{
W_GUI_LIST=(mcomix zathura calibre libreoffice gparted zeal font-manager \
gimp baobab gvim touchegg neato notify-send qtpass youtube-dl yt-dlp \
inkscape qutebrowser pinentry-gtk2 sgt-signpost kitty firefox speedcrunch \
playerctl sway swaylock wofi wofi-pass wev wshowkeys grim grimshot swayimg \
nwg-displays shikane wpaperd wvkbd-mobintl cliphist pqiv)

for i in "${W_GUI_LIST[@]}"; do
    if [[ ! $(command -v ${i}) ]]; then
        MISSING_GUI_W+="${i} "
    fi
done
### End GUI ### }}}

### Font ### {{{

### End Font ### }}}
